TestNG Interview Questions and Answers
Question: Explain the use of the 'alwaysRun' attribute in the @DataProvider annotation.Answer: The 'alwaysRun' attribute in the @DataProvider annotation ensures that the data provider method always runs, even if no test method depends on it. It helps in providing data dynamically. |
Is it helpful?
Yes
No
Most helpful rated by users: